<?php

// Main settings

$conf_def['config_code'] = 'CONTACT';
$conf_def['config_file'] = 'CONTACT.conf.php';
$conf_def['config_name'] = 'Contact Form Page';

// Section Page

$conf_def['section']['page']['label'] = 'Page';
$conf_def['section']['page']['description'] = ''; 	 
$conf_def['section']['page']['properties'] = array ( 'applet_contact_link_name',
    'applet_contact_page_title',
    'applet_contact_page_html_header',
    'applet_contact_page_html_footer' );

$conf_def_property_list['applet_contact_link_name'] = array ('label' => 'Link name'
      ,'description' => ''
      ,'default'     => 'Contact'
      ,'type'        => 'string'
      );

$conf_def_property_list['applet_contact_page_title'] = array ('label' => 'Page title'
      ,'description' => ''
      ,'default'     => 'Contact Form'
      ,'type'        => 'string'
      );

$conf_def_property_list['applet_contact_page_html_header'] =
array ( 'label'       => 'Html header text'
      , 'description' => 'Can contain html'
      , 'type'        => 'text'
      );

$conf_def_property_list['applet_contact_page_html_footer'] =
array ( 'label'       => 'Html header text'
      , 'description' => 'Can contain html'
      , 'type'        => 'text'
      );

// Section Form

$conf_def['section']['form']['label'] = 'Form';
$conf_def['section']['form']['description'] = ''; 	 
$conf_def['section']['form']['properties'] = array ( 'applet_contact_form_required_fields',
    'applet_contact_form_message_type_list'
    );

$conf_def_property_list['applet_contact_form_required_fields'] =
array ( 'label'         => 'Required Fields'
      , 'description'   => 'Which fields of the form are required?'
      , 'default'       => array('name','email','subject','message')
      , 'type'          => 'multi'
      , 'acceptedValue' => array ('name' => 'Name'
                                 ,'email' => 'Email'
                                 ,'subject' => 'Subject'
                                 ,'message' => 'Message' )
      );

$conf_def_property_list['applet_contact_form_message_type_list'] =
array ( 'label'       => 'Message list type'
      , 'description' => 'Separate type with new line'
      , 'type'        => 'text'
      );

// Section Email

$conf_def['section']['email']['label'] = 'Email';
$conf_def['section']['email']['description'] = ''; 	 
$conf_def['section']['email']['properties'] = array ( 'applet_contact_email_list' );

$conf_def_property_list['applet_contact_email_list'] =
array ( 'label'       => 'Email adresses'
      , 'description' => 'Separate email addresses with new line'
      , 'type'        => 'text'
      );

?>
